package com.example.pattern.decorator;

/**
 * 应用
 *
 * @author FM_南风
 * @date 2024/7/2 13:19
 */
public class DecoratorClient {
    public static void main(String[] args) {
        Car sportsCar = new GeneralCar(new BasicCar());
        sportsCar.assemble();
        System.out.println("");
        Car sportsLuxuryCar = new GeneralCar(new LuxuryCar(new BasicCar()));
        sportsLuxuryCar.assemble();
    }
}
